<!--
Copyright 2015 Google Inc. All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

    http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
-->

<kd-resource-card-list selectable="false"
                       with-statuses="false">
  <kd-resource-card-list-header>
    <kd-resource-card-list-title>
      [[Allocated resources|Label 'Allocated resources' for the allocated resources section.]]
    </kd-resource-card-list-title>
  </kd-resource-card-list-header>
  <kd-resource-card-header-columns>
    <kd-resource-card-header-column size="large">
      [[CPU requests (cores)|Label 'CPU requests (cores)' for the allocated resources table header on the node details page.]]
    </kd-resource-card-header-column>
    <kd-resource-card-header-column size="small">%</kd-resource-card-header-column>
    <kd-resource-card-header-column size="large">
      [[CPU limits (cores)|Label 'CPU limits (cores)' for the allocated resources table header on the node details page.]]
    </kd-resource-card-header-column>
    <kd-resource-card-header-column size="small">%</kd-resource-card-header-column>
    <kd-resource-card-header-column size="large">
      [[Memory requests (bytes)|Label 'Memory requests (bytes)' for the allocated resources table header on the node details page.]]
    </kd-resource-card-header-column>
    <kd-resource-card-header-column size="small">%</kd-resource-card-header-column>
    <kd-resource-card-header-column size="large">
      [[Memory limits (bytes)|Label 'Memory limits (bytes)' for the allocated resources table header on the node details page.]]
    </kd-resource-card-header-column>
    <kd-resource-card-header-column size="small">%</kd-resource-card-header-column>
    <kd-resource-card-header-column size="large">
      [[Pods|Label 'Pods' for the allocated resources table header on the node details page.]]
    </kd-resource-card-header-column>
    <kd-resource-card-header-column size="small">%</kd-resource-card-header-column>
  </kd-resource-card-header-columns>
  <kd-resource-card omit-meta="true">
    <kd-resource-card-columns>
      <kd-resource-card-column>
        <div>{{$ctrl.allocatedResources.cpuRequests | kdCores}} / {{$ctrl.allocatedResources.cpuCapacity | kdCores}}</div>
      </kd-resource-card-column>
      <kd-resource-card-column>
        <div>{{$ctrl.allocatedResources.cpuRequestsFraction | number: 2}}</div>
      </kd-resource-card-column>
      <kd-resource-card-column>
        <div>{{$ctrl.allocatedResources.cpuLimits | kdCores}} / {{$ctrl.allocatedResources.cpuCapacity | kdCores}}</div>
      </kd-resource-card-column>
      <kd-resource-card-column>
        <div>{{$ctrl.allocatedResources.cpuLimitsFraction | number: 2}}</div>
      </kd-resource-card-column>
      <kd-resource-card-column>
        <div>{{$ctrl.allocatedResources.memoryRequests | kdMemory}} / {{$ctrl.allocatedResources.memoryCapacity | kdMemory}}</div>
      </kd-resource-card-column>
      <kd-resource-card-column>
        <div>{{$ctrl.allocatedResources.memoryRequestsFraction | number: 2}}</div>
      </kd-resource-card-column>
      <kd-resource-card-column>
        <div>{{$ctrl.allocatedResources.memoryLimits | kdMemory}} / {{$ctrl.allocatedResources.memoryCapacity | kdMemory}}</div>
      </kd-resource-card-column>
      <kd-resource-card-column>
        <div>{{$ctrl.allocatedResources.memoryLimitsFraction | number: 2}}</div>
      </kd-resource-card-column>

      <kd-resource-card-column>
        <div>{{$ctrl.allocatedResources.allocatedPods}} / {{$ctrl.allocatedResources.podCapacity}}
        </div>
      </kd-resource-card-column>
      <kd-resource-card-column>
        <div>{{$ctrl.allocatedResources.allocatedPods / $ctrl.allocatedResources.podCapacity * 100 | number : 2}}</div>
      </kd-resource-card-column>
    </kd-resource-card-columns>
  </kd-resource-card>
</kd-resource-card-list>
